home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 112 / EnigmaAmiga112CD.iso / dalla rivista / awnpipe / awnp / awnp-docs / event.doc < prev    next >
Text File  |  2000-05-14  |  2KB  |  65 lines

  1. EVENT TYPES
  2. -------------
  3. Gadget hit     "gadget GID [gadget specific data]"
  4.  Read gadget information for specifics.
  5.  
  6. Help           "help GID MOUSEX MOUSEY<cr>"
  7.  The mouse is over the gadget specified. The mouse location is useful in determining where to open a help window.
  8.  
  9. Keystroke      "key KEYCODE QUALIFIER<cr>"
  10.  The user hit a key. Raw keycodes are returned along with the current qualifier.
  11.  
  12. Qualifier      "qual QUALIFIER<cr>"
  13.  
  14.  A change in the current qualifier is detected. Not all qualifier changes will cause events. HOWEVER the last qualifier event will ALWAYS be correct for the event(s) that follow it.
  15.  
  16. Close          "close CLOSESOURCE<cr>"
  17.  The window has been closed.
  18.  CLOSESOURCE=0        WindowClose Gadget
  19.  CLOSESOURCE=-1       Closed by CTRL-BackSlash
  20. else CLOSESOURCE=GID  Closed by GID
  21.  
  22. Commodity    "cx TYPE [SUBTYPE]"
  23.  
  24.  The Commodity object received a message.
  25.  
  26. AskClose   "askclose"
  27.  
  28.  User tried to close the GUI window. (not always used see window docs)
  29.  
  30. Refresh        "refresh"
  31.  
  32.  The window has been sized or altered and you should refresh any components you manually draw into the window. (You only ask for and watch these events if you use the 'Draw' modify command.)
  33.  
  34. Menu           "menu  MENU# ITEM# SUBITEM# CHECKED<cr>"
  35.  
  36.  Menu selected.
  37. checked=0 Item is not checked
  38. checked=1 Item is checked
  39.  
  40.  Be careful of false (undefined) menu hits.
  41.  
  42. Window Active  "active 0|1<cr>"
  43.  0= window inactive
  44.  1= window active
  45.  
  46. Application  "app FILENAME <cr>"
  47.  
  48.  An icon has been dropped on the window.
  49.  
  50. Iconify  "iconify MODE<cr>"
  51.  
  52. mode 0 = uniconify
  53. mode 1 = iconify
  54.  
  55. Iconify events are only sent if modify is turned on. You must manually iconify or uniconify the window in this case. See window.doc.
  56.  
  57. If modify is not turned on the iconification is automatic and no iconify events are sent.
  58.  
  59. ARexx command  "arexx FID len <cr> command"
  60.  
  61.  You must first read the arexx event, the read len additional characters.
  62.  
  63. See the  docs for each gadget type for more information.
  64.  
  65.